package com.sec.android.app.myfiles.widget.listview;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.CheckBox;

public class ReverseCheckBox extends CheckBox {
    boolean mReverse = false;

    public ReverseCheckBox(Context context) {
        super(context, null);
    }

    public ReverseCheckBox(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public ReverseCheckBox(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr, 0);
    }

    public ReverseCheckBox(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
    }

    public void setReverse(boolean bReverse) {
        mReverse = bReverse;
    }
    
    @Override
    public void setChecked(boolean checked) {
        super.setChecked(checked ^ mReverse);
    }
}
